﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication1
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        static string Username;
        static string Password;
        protected void Page_Load(object sender, EventArgs e)
        {
            
        }

        protected void Button3_Click(object sender, EventArgs e)
        {
            Username = username.Text;
            Password = password.Text;

            Response.Redirect($"~/webForm2.aspx?username={Username}&password={Password}");
        }

        protected void Button4_Click(object sender, EventArgs e)
        {
            Username = username.Text;
            Password = password.Text;

            //Literal1.Text = $"<a href=\"WebForm2.aspx?username={Username}&password={Password}\">登陆</a>";
        }
    }
}